<?php $theme_options = get_option('po_theme'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="distribution" content="global" />
<!--<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>-->
<title><?php wp_title(''); ?></title>
<link rel="Shortcut Icon" href="<?php echo $theme_options["favicon"]; ?>" type="image/x-icon" />
<style type="text/css" media="all">@import "<?php bloginfo('template_url'); ?>/style.css";</style>
<!--[if lt IE 7]><style type="text/css" media="all">body {background:#FFF !important}; #layout {display:none}; #ie6 {display:block !important};</style><![endif]-->
<!--[if IE 7]><link href="<?php bloginfo('template_url'); ?>/styles/ie7.css" rel="stylesheet" type="text/css"><![endif]-->
<!--[if IE 8]><link href="<?php bloginfo('template_url'); ?>/styles/ie8.css" rel="stylesheet" type="text/css"><![endif]-->
<script type="text/javascript"><!--
if(window.opera) {document.write('<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('template_directory'); ?>/styles/opera.css" />');}
//--></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.dropdownPlain.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/ui.core.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/ui.tabs.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/tools.scrollable.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/tools.scrollable.circular.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/tools.scrollable.navigator.pack.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/tools.scrollable.autoscroll.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/tools.tabs-1.0.4.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.color.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.event.drag-2.0.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.panda.js" type="text/javascript"></script>
<?php if(is_home()) { ?>
<script type='text/javascript'>
$(function(){
<?php if ($theme_options['thumbs_source']=="flickr") { ?>
/* FEATURED FLICKR */
	$("#feat-posts").removeClass('none');
	$(".flickr_badge_beacon").remove();
	$("#featarea").find(".flickr_badge_image")
		.addClass('featpic')
		.removeClass('flickr_badge_image')
		.removeAttr('id');
	$(".featpic").find('img').addClass('pic');
	<?php if ($theme_options['featured_flickr_source_type']=="user") {$source_type="photos";} else {$source_type="groups";} ?>
	var tgt = $("#admin").find('.flickr_target').text();
	var flicklink = 'Follow me on <a class="flicklink" href="http://www.flickr.com/<?php echo $source_type ?>/' + $("#admin").find('.flickr_id').text() +'/">Flickr</a>';
	$(".featpic").each(function() {
		var featimg = $(this).find('a').html();
		var title = $(this).find('img').attr("title");
		$(this).find('a').remove();
		$(this).append(featimg).append('<a rel="prettyPhoto[my_gallery]"><img src="<?php bloginfo('template_url'); ?>/images/zero.gif" alt=""/></a>');
		var src = $(this).find('img').attr("src").slice(0,-6);
		var href = src + tgt;
		$(this).find('a').attr('href',href).attr('title',flicklink);
		$(this).find('img').attr('alt',title);
	});
/* FADE AND THUMB DIMENTIONS FOR FLICKR */
	$(".pic").one("load",function(){
	var	thh = $(this).height(),
			thw = $(this).width(),
			thumbheight = thh + 17,
			thumbwidth = thw + 7,
			deg = 20 - (Math.floor(Math.random()*40)),
			mxtop = 400 - thumbheight,		topth = Math.floor(Math.random()*mxtop),
			mxleft = 940 - thumbwidth,		leftth = Math.floor(Math.random()*mxleft),
			delay = (Math.floor(Math.random()*4000));
		$(this).next().find('img').css({height:thh, width:thw});
		$(this).parent().css({height:thumbheight, width:thumbwidth, left:leftth, top:topth});
			var style = $(this).parent().attr('style');
			var rot = $("#admin").find('.rotation').text();
			if (rot == "yes") { var style = style + "; -moz-transform:rotate(" + deg + "deg); -webkit-transform:rotate(" + deg + "deg); -o-transform: rotate(" + deg + "deg);"; };
		$(this).parent().removeAttr('style').attr('style',style);
		$(".loading-ding-ding").remove();
		$(this).parent().stop().delay(delay).animate({opacity:1},1200);
	})
	.each(function(){
		if(this.complete) $(this).trigger("load");
	});
<?php ;} else { ?>
/* FADE AND THUMB DIMENTIONS FOR POSTS */
	$(".pic").one("load",function(){
		var thh = $(this).height();
		var thumbheight = thh + 17;
		$(this).next().find('img').css({height:thh});
		$(".loading-ding-ding").remove();
		$(this).parent().css({height:thumbheight}).stop().animate({opacity:1},1200);
	})
	.each(function(){
		if(this.complete) $(this).trigger("load");
	});
<?php ;} ?>
/* DRAGGABLE THUMBS */
	var $div = $('#layout');
	var $width = $div.outerWidth();
	var $left = ($width-940)/2;
	var $half = <?php echo $theme_options['featured_thumbs_size'] ;?>;
	$('.featpic')
		.drag("start",function(){
			$( this ).appendTo( this.parentNode ).addClass("cursor-move");
			$( this ).find('a').addClass("none");
		})
		.drag("end",function(){
			$( this ).removeClass("cursor-move");
			$( this ).find('a').removeClass("none");	
		})
		.drag(function( ev ){
			$( this ).css({
				top: ev.pageY - 136 - 46,
				left: ev.pageX - $left - $half/2 - 7
			});
		});
});
</script>

<?php ;}
// SELECT A STYLE
if ($theme_options['style']<>"" && $theme_options['style']!="default") { 
echo '<style type="text/css" media="all">@import "'.get_bloginfo('template_url').'/styles/custom/'.$theme_options['style'].'.css";</style>';
}
include(TEMPLATEPATH."/styles/custom_style.php");

wp_head();?> 

<!-- Place this render call where appropriate -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
<!-- Add the following three tags inside head -->
<meta itemprop="name" content="NajeebMedia Web Development">
<meta itemprop="description" content="Nmedia is serving all over the globe. It's our efficient and effective solution that has given us domestic and global giants as satisfied clients. In this span of one month Nmedia has earned a strong reputation in New Media Technologies as a dependable source for all technology enabled requirements of our customers. We have catered several Clients belonging to various business domains.">
<meta itemprop="image" content="http://www.najeebmedia.com/logo.png">
<!-- Google + ends -->


</head>
<body>
<div id="layout">
	<div id="preheader">
		<div id="bio">
			<div>
				<div class="f11 lh11">
					<?php the_author_meta( description, 1 ); ?> 
				</div>
			</div>
		</div>
		<?php if ($theme_options['enable_lifestream'] == "enable" ) { $icount = 0; ?>
			<div id="icons">
				<div>
					<?php // SOCIAL NETWORKS
						$arr = array("rss","twitter","deviantart","digg","facebook","flickr","lastfm","linkedin","myspace","picasa","reddit","reddit","skype","stumbleupon","technorati","youtube","vimeo","blogger","delicious","designfloat","designmoo");
						foreach ($arr as $value) {
							if ($theme_options['life_'.$value]) {
								echo '<a href="'.$theme_options['life_'.$value].'"><img src="'.get_bloginfo('template_url').'/images/icons/'.$value.'_16.png" alt=""/></a>'; $icount++ ;
							};
						};
					?>
				</div>
				<div class="clear"><!-- --></div>
			</div><!-- end icons -->
			<style type="text/css">#icons { width:<?php $ip = 20 * $icount; echo $ip ;?>px; }</style>
		<?php ;} ?>
	</div>
	<div id="header">
		<?php if (($theme_options['logo_type'] == "Text") || (!($theme_options['logo_type']<>"")) ) { ?>
				<div id="logo">
					<div>
						<div>
							<span id="gra"><?php echo get_avatar( 1, 50 ); ?></span>
							<h1 class="logo"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
							<em class="f11"><?php bloginfo('description'); ?></em>
						</div>
					</div>
				</div>
			<?php ;}
			else { ?>
				<div id="logo">
					<div>
						<div>
							<h1 id="imglogo" class="logo"><a href="<?php echo get_option('home'); ?>"><img src="<?php echo $theme_options['logo'] ?>" alt="<?php bloginfo('title'); ?>"/></a></h1>
						</div>
					</div>
				</div>
			<?php ;} 
		?>
	
		<div id="phone">
			<div>
				<?php wp_nav_menu(array('sort_column' => 'menu_order', 'container_class' => 'menubox', 'menu_class' => 'menu' )); ?>
			</div>
		</div>
		
		<div class="clear"><!-- --></div>
	</div><!-- end header -->

<div id="sub0"><!-- --></div>

<?php // ADD WRAPPER FOR ALL PAGES EXCLUDE HOME
if (!(is_home())) { ?>
	<div id="wrapper">
<?php ;} ?>